package com.telit.common.constant;

import java.util.HashMap;
import java.util.Map;


/**
 * @Auther amy
 * @Describe
 */
public class RoleCodeConstants {

    private static final Map<String, Long> RoleMap = new HashMap<>();

    /** 护林员角色编码 **/
    public static final String ROLE_CODE_FORESTER = "HLY";
    public static final Long ROLE_CODE_FORESTER_ID = 2L;

    /** 飞手角色编码 **/
    public static final String ROLE_CODE_UAV_USER = "NJ_FS";
    public static final Long ROLE_CODE_UAV_USER_ID = 3L;

    /** 人工值守角色编码 **/
    public static final String ROLE_CODE_MANUAL_DUTY = "ZS";
    public static final Long ROLE_CODE_MANUAL_DUTY_ID = 4L;

    /** 防火管理员编码 **/
    public static final String ROLE_CODE_FIRE_MANAGER = "FH_MANAGER";
    public static final Long ROLE_CODE_FIRE_MANAGER_ID = 5L;

    /**
     * 防火队长
     */
    public static final String ROLE_CODE_FHDZ = "FHDZ";
    public static final Long ROLE_CODE_FHDZ_ID = 6L;

    /*
     * 微信用户id
     */
    public static final Long USER_ID_WECHAT = 900L;

    public static final String USER_NAME_WECHAT = "微信用户";

    static {
        RoleMap.put(ROLE_CODE_FORESTER, ROLE_CODE_FORESTER_ID);
        RoleMap.put(ROLE_CODE_UAV_USER, ROLE_CODE_UAV_USER_ID);
        RoleMap.put(ROLE_CODE_MANUAL_DUTY, ROLE_CODE_MANUAL_DUTY_ID);
        RoleMap.put(ROLE_CODE_FIRE_MANAGER, ROLE_CODE_FIRE_MANAGER_ID);
        RoleMap.put(ROLE_CODE_FHDZ, ROLE_CODE_FHDZ_ID);
    }

    public static Long getRoleId(String roleCode) {
        return RoleMap.get(roleCode);
    }

}
